<?php
/**
 *
 * (ziniao-model)
 */
namespace App\Models\ZiNiao;

use Illuminate\Database\Eloquent\Model;
class PlansTasks extends Model
{
    protected $connection = 'mysql_ziniao';

    protected $table = 'plans_tasks';

    protected $guarded  = [];

    public static $_planStatus = [
        'ENABLED' => '生效中',
        'DELETED' => '已删除',
        'STOP' => '运行结束（执行完毕）',
        'OBSOLETE' => '过期',
    ];

    public static $_taskStatus = [
        'READY' => '待运行',
        'RUNNING' => '运行中',
        'STOP' => '被终止',
        'TIMEOUT' => '任务超时但未结束',
        'FAIL' => '任务失败',
        'SUCCESS' => '任务成功',
        'REDO_RUNNING' => '重试执行中',
        'REDO_OVER' => '重试结束',
        'NO_VALID_STORE' => '无有效店铺',
        'NO_VALID_SITE' => '无有效站点',
        'NO_BALANCE' => '欠费',
    ];

    public static $_status = [
        0 => '未生成结果',
        1 => '已生成结果',
    ];

}
